const base = '/userserver'
const Mock = require('mockjs')

module.exports = [{
  url: `${base}/wx/qrcode`,
  type: 'post',
  response: config => {
    const a = '#' + Mock.Random.integer(180, 255).toString(16) + Mock.Random.integer(140, 255).toString(16) + Mock.Random.integer(120, 220).toString(16)
    return Mock.Random.image('140x140', a, ' IMAGE ')
  }
}]
